package com.guomei.bean.curse;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class SubmitApply {
    /**
     * ID
     */
    private Long id;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    /**
     * 课程老师ID
     */
    @NotNull(message = "课程老师ID不能为空")
    private Long teacherId;

    /**
     * 分销人ID
     */
    @NotNull(message = "分销人ID不能为空")
    private Long distributorId;

    /**
     * 状态(0-申请中,1-已通过,2-已拒绝)
     */
    private Short status;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime applyTime;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime reviewTime;

    /**
     * 审核备注
     */
    private String reviewRemark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedTime;

    /**
     * 分销比例
     */
    @NotNull(message = "分销比例不能为空")
    private BigDecimal distributionRatio;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    private Long userId;

}
